﻿namespace FinalPointSet.Model.Model.MockData
{
    /// <summary>
    /// 模拟数据字段类型划分
    /// 将字段,先进行初步的划分后,在后续进行复杂的识别
    /// </summary>
    public class MockFieldClassify
    {
        /// <summary>
        /// ID
        /// </summary>
        public int ID { get; set; } = -1;
        /// <summary>
        /// 划分规则名称
        /// </summary>
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// 划分类型
        /// </summary>
        public ClassfiyType ClassfiyType { get; set; } = ClassfiyType.Other;
        /// <summary>
        /// 来源字段类型
        /// </summary>
        public string FieldTypes { get; set; } = string.Empty;
        /// <summary>
        /// 排序值
        /// </summary>
        public int Sequence { get; set; } = 0;

        public MockFieldClassify() { }

        public MockFieldClassify(int id, string name, string fieldTypes, ClassfiyType classfiyType, int sequence)
        {
            ID = id;
            Name = name;
            FieldTypes = fieldTypes;
            ClassfiyType = classfiyType;
            Sequence = sequence;
        }

        public override string? ToString()
        {
            return $"ID={ID},Name={Name},FieldTypes={FieldTypes},ClassfiyType={ClassfiyType},Sequence={Sequence}";
        }
    }
}
